package com.jiawei.config;

import org.smartboot.socket.transport.AioSession;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author : willian fu
 * @version : 1.0
 * 线程安全客户端数据静态类
 */
public class ClientMappingData {

    //合法设备在线列表
    public static final ConcurrentHashMap<Object, AioSession<Object>> clientOnlineGroup = new ConcurrentHashMap<>();
    //黑名单设备列表
    public static final ConcurrentHashMap<Object, AioSession<Object>> clientBlacklistGroup = new ConcurrentHashMap<>();
    //黑名单ip列表
    public static final List<String> ipBlacklistGroup = Collections.synchronizedList(new ArrayList<>());
}
